#include "tg_zoom.h"

int TgZoom::validZoom(int zoom)
{
    if( zoom > maxZoom )
    {
        zoom = maxZoom;
    }
    else if( zoom < minZoom )
    {
        zoom = minZoom;
    }
    return zoom;
}
